<?php

/**
 * Faisceau form.
 *
 * @package    appcemhti
 * @subpackage form
 * @author     Steve Cancès
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class FaisceauForm extends BaseFaisceauForm
{
    public function configure()
    {
        $this->validatorSchema['id_traitement'] = new sfValidatorInteger();
        
        $this->widgetSchema['id_refroidissement_temperature']->setLabel("Régulation de température");
        //$this->widgetSchema['id_element']->setLabel("Elément");
        //$this->widgetSchema['id_balayage']->setLabel("Balayage faisceau");
        //$this->widgetSchema['courantmax']->setLabel("Courant maximum (nA)");
        //$this->widgetSchema['courantmoy']->setLabel("Courant moyen (nA)");
        //$this->widgetSchema['energie']->setLabel("Energie (keV)");
        //$this->widgetSchema['fluence']->setLabel("Fluence (cm<sup>-2</sup>)");
        $this->widgetSchema['temperature']->setLabel("Température (°C)");
        
        
        $this->widgetSchema->moveField('temperature', sfWidgetFormSchema::BEFORE, 'id_refroidissement_temperature');
    }
}
